package com.jiliang.jiliangserver.mapper;

import com.jiliang.jiliangserver.annotation.DataSource;
import com.jiliang.jiliangserver.domain.Custinfo;
import com.jiliang.jiliangserver.domain.JlMessage;
import com.jiliang.jiliangserver.domain.MeterQuery;
import com.jiliang.jiliangserver.enums.DataSourceType;

import java.util.List;
import java.util.Map;

/**
 * 参数配置 数据层
 * 
 * @author ruoyi
 */
@DataSource(DataSourceType.MASTER)
public interface JiliangMapper
{

    //查询用户列表
    @DataSource(DataSourceType.SLAVE)
    public List<Custinfo> selectCustinfoList(MeterQuery query);

    //新建消息
    public int createMessage(JlMessage message);

    //更新消息
    public int updateMessage(JlMessage message);

    //查询消息
    public List<JlMessage> selectMessageList(JlMessage message);

    public JlMessage selectMessageById(Long id);

    public List<Map> getDictByType(String dictType);



}
